package com.ccb.sc.luxury.convert;

import com.ccb.sc.luxury.vo.LuxuryDetailVo;
import com.ccb.sc.luxury.vo.LuxuryListVo;
import com.ccb.sc.common.modules.luxury.entity.LuxuryLogistics;
import com.ccb.sc.common.modules.luxury.entity.LuxuryOrder;
import com.ccb.sc.common.modules.luxury.vo.LuxuryLogisticsVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author ken
 * @version 1.0
 * @date 2020-09-20
 */
@Mapper
public interface AppLuxuryConvert {

    AppLuxuryConvert INSTANCE = Mappers.getMapper(AppLuxuryConvert.class);

    List<LuxuryListVo> entity2Vo(List<LuxuryOrder> list);

    LuxuryDetailVo entity2Vo(LuxuryOrder entity);

    List<LuxuryLogisticsVo> logistics2Vo(List<LuxuryLogistics> list);
}
